# 读取word文档


import docx


doc1 = docx.Document('../02.py_wordFile/04.采购合同模板.docx')


# 获取文档
for p in doc1.paragraphs:
    print(p.text)


# 获取表格
for t in doc1.tables:
    for row in t.rows:
        for cell in row.cells:
            print(cell.text)
